/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rhmanager;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author Alexander Remen
 */
@WebService()
public class rhmanager {

/**
     * Web service operation
     */
    @WebMethod(operationName = "getRole")
    public String getRole(@WebParam(name = "username") String username) {
       String res;
        
        if (username.equals("Talata")){
           res = "teacher";
       }
        else if (username.equals("Marre")){
            res ="secretary";
        }
        else if (username.equals("Nograbat")){
            res = "respCO";
        }
        else if (username.equals("Exposito")){
            res = "respUV";
        }
        else if(username.equals("Monteil")){
            res = "respYear";
        }
        else {
           res = "FAIL";
        }
       return res;
    }

}
